﻿<UserControl x:Class="TouchExplorer.Views.ApplicationsBrowser"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:touch="clr-namespace:TouchControls;assembly=TouchControls" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <touch:TouchListBox x:Name="ListApps" ItemsSource="{Binding Apps}">
            <touch:TouchListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapPanel />
                </ItemsPanelTemplate>
            </touch:TouchListBox.ItemsPanel>
            <touch:TouchListBox.ItemTemplate>
                <DataTemplate>
                    <Grid MaxWidth="250">
                        <TextBlock Text="{Binding Name}" />
                        <ContentControl Content="{Binding Content}" Loaded="ContentLoaded" />
                    </Grid>
                </DataTemplate>
            </touch:TouchListBox.ItemTemplate>   
        </touch:TouchListBox>
    </Grid>
</UserControl>
